package com.event.example.constant;

import lombok.AllArgsConstructor;
import lombok.Getter;

import java.util.concurrent.TimeUnit;

@Getter
@AllArgsConstructor
public enum CacheNameEnum {

    ONE_MINUTE(CacheKey.CACHEMANAGER_ONE_MINUTE, TimeUnit.MINUTES,1),

    TEN_MINUTE(CacheKey.CACHEMANAGER_TEN_MINUTE, TimeUnit.MINUTES,10),

    THIRTY_MINUTE(CacheKey.CACHEMANAGER_THIRTY_MINUTE, TimeUnit.MINUTES,30);

    private String name;

    private TimeUnit timeUnit;

    private int effectiveTime;

}
